//
//  SUNScrollImage.m
//  SUNCommonComponent
//
//  Created by mac on 14-4-28.
//
//

#import "SUNScrollImage.h"
#import "EGOImageButton.h"
#import "Unity.h"
#import "UItil.h"
@implementation SUNScrollImage
@synthesize imageButton,imagev;
- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        imagev = [[EGOImageView alloc]initWithPlaceholderImage:[UIImage imageNamed:@"缺省图"]];
        imagev.frame = CGRectMake(0, 0, SWIDTH, 190);
        imagev.backgroundColor = [UIColor clearColor];
        [imagev setContentMode:UIViewContentModeScaleToFill];
        [self addSubview:imagev];
        
        imageButton = [[EGOImageButton alloc]initWithPlaceholderImage:[UIImage imageNamed:@"缺省图"]];
        imageButton.frame = CGRectMake(0, 0, SWIDTH, 190);
        imageButton.backgroundColor = [UIColor clearColor];
        [imageButton.imageView setContentMode:UIViewContentModeScaleAspectFill];
        [self addSubview:imageButton];
        // Initialization code
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
